// RtcWake for Windows
// 版权所有 (c) 2025 Jianyin Li
// 许可证: 非商业使用

#ifndef SETTIMER_HPP
#define SETTIMER_HPP

#include<iostream>
#include<string>
#include<thread>
#include<chrono>

using ::std::string;

class timers {
public:
    std::string name;
    timers(string name, int sec);
    int creat(int after_sec);
protected:
    int nyear, nmonth, nday, nh, nm, nsec;
    int ryear, rmonth, rday, rh, rm, rsec;
    int diff_sec;
    void get_real_timer(int& year, int& month, int& day, int& hour, int& min, int& sec);
    void result_time(int& year, int& month, int& day, int& hour, int& min, int& sec);
};

#endif 